package casa.depesos.app.com.http.data;

import android.text.TextUtils;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Banner {

    @SerializedName("idcode")
    @Expose
    public String id;

    @SerializedName("graPath")
    @Expose
    public String img;

    @SerializedName("toType")
    @Expose
    public String type;

    @SerializedName("finalPath")
    @Expose
    public String url;

    @SerializedName("appel")
    @Expose
    public String name;

    @SerializedName("titleTxt")
    @Expose
    public String title;

    public String source;

    public String getMsg() {
        if (!TextUtils.isEmpty(title)) {
            return title;
        }
        if (!TextUtils.isEmpty(name)) {
            return name;
        }
        return "";
    }
}
